package com.stone.framework.user.mapper;

import org.apache.ibatis.annotations.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.stone.framework.user.entity.Dept;

@Mapper
public interface DeptMapper extends BaseMapper<Dept> {

    // @Select("SELECT SD.CODE FROM ST_USER_DEPT SUD JOIN ST_USER SU ON SU.ID = SUD.USER_ID JOIN ST_DEPT SD ON SD.ID =
    // SUD.DEPT_ID WHERE SU.NAME = #{username}")
    // String selectByUsername(String username);

}
